package com.itheima.reggie.service;

import com.github.pagehelper.PageInfo;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.entity.Dish;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Transactional
public interface DishService {
    void insert(DishDto dishDto);

    PageInfo<DishDto> selectByPage(int page, int pageSize, String name);

    void delete(String id);

    void updateStatus(String id,int is0or1);

    DishDto selectAllById(String id);

    void updateById(DishDto dishDto);

    List<Dish> selectByCategoryId(String categoryId);
}
